import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'home',
    redirect:"/login",
  },
  {
    path: '/test',
    name: 'Test',
    component:()=>import('../views/Test.vue')
  },
  {
    path: '/manage',
    name: 'Manage',
    component:()=>import('../views/Manager/Manage.vue'),
    children: [
      {path: '/index',name:'Index',component:()=>import('../views/Index/Index.vue')}
    ]
  },
  {
    path: '/index',
    name: 'Index',
    component:()=>import('../views/Index/Index.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component:()=>import('../views/Login/Login.vue'),
    children:[
      {path: '/particles', name: 'Particles', component:() =>import('../views/Particles.vue')},
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
